.ui-diagram {
    position: relative;
    overflow: auto;
}

.ui-diagram-element {
    position: absolute;
}